﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;

namespace RaisingStudio.Trigger.Models
{
    public class TriggerPart : ContentPart<TriggerPartRecord>
    {
        [Required]
        public string Title
        {
            get { return Record.Title; }
            set { Record.Title = value; }
        }

        [Required]
        public string Event
        {
            get { return Record.Event; }
            set { Record.Event = value; }
        }

        public string Condition
        {
            get { return Record.Condition; }
            set { Record.Condition = value; }
        }

        public string Action
        {
            get { return Record.Action; }
            set { Record.Action = value; }
        }
    }
}